$form-button: (
  icon-max-width: getCssVar(width-icon, medium),
  icon-max-height: getCssVar(width-icon, medium),
);

@include b(form-button) {
  @include set-component-css-var(form-button, $form-button);

  width: 100%;
  height: 100%;
  padding: getCssVar(spacing, tight);
  overflow: hidden;

  .van-button {
    width: 100%;

    @include b(form-button-content) {
      @include flex(row, flex-start, center);
      gap: getCssVar(spacing, extra, tight);
      
      img,
      i {
        display: inline-block;
        max-width: getCssVar(form-button, icon-max-width);
        max-height: getCssVar(form-button, icon-max-height);
      }
    }
  }

  @include when(loading) {
    .van-button {
      .#{bem(icon)} {
        display: none;
      }
    }
  }
}